#!/usr/bin/env python
#encoding: utf-8
import MySQLdb as mdb
import hashlib
# from qa.views import select_at
def select_config():
	try:
		con = mdb.connect('10.9.128.47', 'root', 'qatest', 'qa',charset='utf8')
		with con:
			cur = con.cursor()
			#执行一个查询
			cur.execute("SELECT * from qa_auto_time_debug WHERE id = 1")
			#取得上个查询的结果，是单个结果
			result = cur.fetchone()
			return result
	finally:
		con.close()